home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2002-07-31 | 1.6 KB | 64 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="3"
- "UIPATH"="System\Software Installation\Windows Installer"
- "NAME"="Options - System"
- "VERSION"="1.01"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Always install using privileged account"
- "TEXT 2"="Enable users to control installation"
- "TEXT 3"="Auto execute MSI files downloaded using IE (no warning)"
- "DESCRIPTION 1"="Internet Explorer 5, Office 2000 and Windows 2000 use a new standard for installing applications: the Windows Installer (aka MSI). "
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- sPathSys="HKLM\Software\Policies\Microsoft\Windows\Installer\"
- sV1="AlwaysInstallElevated" 'DW - sys
- sV2="EnableUserControl" 'DW
- sV3="SafeForScripting" 'DW
-
-
- Sub Plugin_Initialize
- i=RegReadValue(sPathSys & sV1)
- if i=1 then setuielement 1,true
-
- i=RegReadValue(sPathSys & sV2)
- if i=1 then setuielement 2,true
-
- i=RegReadValue(sPathSys & sV3)
- if i=1 then setuielement 3,true
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sPathSys & sV1,1,2)
- else
- Call RegWriteValue(sPathSys & sV1,0,2)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sPathSys & sV2,1,2)
- else
- Call RegWriteValue(sPathSys & sV2,0,2)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sPathSys & sV3,1,2)
- else
- Call RegWriteValue(sPathSys & sV3,0,2)
- end if
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-